.class public final Llt/noframe/ratemeplease/AppIntents;
.super Ljava/lang/Object;
.source "AppIntents.kt"


# static fields
.field public static final INSTANCE:Llt/noframe/ratemeplease/AppIntents;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 12
    new-instance v0, Llt/noframe/ratemeplease/AppIntents;

    invoke-direct {v0}, Llt/noframe/ratemeplease/AppIntents;-><init>()V

    sput-object v0, Llt/noframe/ratemeplease/AppIntents;->INSTANCE:Llt/noframe/ratemeplease/AppIntents;

    return-void
.end method

.method private constructor <init>()V
    .locals 0

    .line 12
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final createGooglePlayIntent(Landroid/content/Context;)Landroid/content/Intent;
    .locals 3

    const-string v0, "context"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 15
    invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v0

    .line 16
    new-instance v1, Landroid/content/Intent;

    const-string v2, "packageName"

    invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-static {v0}, Llt/noframe/ratemeplease/utils/UtilsKt;->getGooglePlayUri(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    const-string v2, "android.intent.action.VIEW"

    invoke-direct {v1, v2, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 17
    sget-object v0, Llt/noframe/ratemeplease/Const;->INSTANCE:Llt/noframe/ratemeplease/Const;

    invoke-virtual {v0}, Llt/noframe/ratemeplease/Const;->getGOOGLE_PLAY_PACKAGE_NAME()Ljava/lang/String;

    move-result-object v0

    invoke-static {p1, v0}, Llt/noframe/ratemeplease/utils/UtilsKt;->isPackageExists(Landroid/content/Context;Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 18
    sget-object p1, Llt/noframe/ratemeplease/Const;->INSTANCE:Llt/noframe/ratemeplease/Const;

    invoke-virtual {p1}, Llt/noframe/ratemeplease/Const;->getGOOGLE_PLAY_PACKAGE_NAME()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    :cond_0
    return-object v1
.end method
